Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (human-written)
Putting this up in draft for now; i was doing some lora tweak over the weekend and thought might be intersting for folks
Agent Notes
Why
Main has no native training path for the published Inkling 2 Mini checkpoint. This experiment fine-tunes its recurrent text backbone on one DGX Spark without expanding all experts to BF16 or introducing Inkling-specific logic into the core Trainer.
torchrun --standalone --nproc-per-node=1 --module torchtitan.train --module inkling_run --config spark --output-dir "$run".$run/merged-step-Nwith the trained query weights, original packed experts, tokenizer and drafter.What changed
Numerics / performance
One GB10, batch 1, 64 tokens, PyTorch 2.16.0.dev20261126+cu134. Across two runs per arm, median warm optimizer steps took 7.22–7.25 s for the eager prototype and 0.584–0.587 s for grouped experts + FlexAttention (12.35×). Peak reserved memory was 20.28 vs 19.99 GiB. FlexAttention changes BF16 rounding; first-step adapter gradient cosine versus eager was 0.672, not numerical parity.
On the same stratified UCI Car Evaluation split (1,382 train, 346 held out), seed 42, and learning rate 0.0002:
Testing
python -m pytest -q torchtitan/experiments/inkling/tests: 45 passed on CPU/GB10, including gradients after inference, packed expert gradients, shared adapters, HF load, native checkpoint round-trip, and rejection of overlapping checkpoint paths.e1169c116) matched the six-token reference exactly, resumed step 9 to 10 bit-for-bit on 192 adapter/optimizer tensors, and passed a 16-step WarpDrive decode on its merged export. Those are not exact-parity or final-SHA WarpDrive claims for the optimized CUDA path.Self-review
Branch-mode review of
f432f8c57..ae55c0580: approve for the documented single-Spark workflow. Manually symlinking nativestep-*directories from other runs is outside the tested workflow. Hosted CI has not run.